<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>S110_nRF51822/Include/ble/softdevice/nrf_soc.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css" />
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="alias.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="alias.js"></script>

<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>


<script type="text/javascript">
  jQuery(document).ready(function () {
    if(gref){ // Number all _img and _table classes
      gref();
    }
  });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nRF51822 BLE SDK
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('nrf__soc_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">S110_nRF51822/Include/ble/softdevice/nrf_soc.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Copyright (c) 2011 Nordic Semiconductor. All Rights Reserved.</span>
<a name="l00002"></a>00002 <span class="comment"> *</span>
<a name="l00003"></a>00003 <span class="comment"> * The information contained herein is confidential property of Nordic Semiconductor. The use,</span>
<a name="l00004"></a>00004 <span class="comment"> * copying, transfer or disclosure of such information is prohibited except by express written</span>
<a name="l00005"></a>00005 <span class="comment"> * agreement with Nordic Semiconductor.</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> */</span>
<a name="l00008"></a>00008  
<a name="l00017"></a>00017 <span class="preprocessor">#ifndef NRF_SOC_H__</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define NRF_SOC_H__</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;stdint.h&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;stdbool.h&gt;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &quot;nrf.h&quot;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;nrf_error_soc.h&quot;</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef SVCALL</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#if defined(__arm__)</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor">#define SVCALL(x) __svc(x)</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#else </span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define SVCALL(x)</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#endif  // SVCALL</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00034"></a><a class="code" href="group__nrf__soc__api.html#ga5907cc7ce1f01bd6113de826ed7d26bb">00034</a> <span class="preprocessor">#define SOC_SVC_BASE 0x20</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span>
<a name="l00036"></a>00036 
<a name="l00038"></a>00038 <span class="keyword">enum</span> {
<a name="l00039"></a>00039   SVC_MUTEX_NEW = <a class="code" href="group__nrf__soc__api.html#ga5907cc7ce1f01bd6113de826ed7d26bb" title="The number of the lowest SVC number reserved for the SoC library.">SOC_SVC_BASE</a>,
<a name="l00040"></a>00040   SVC_MUTEX_ACQUIRE,
<a name="l00041"></a>00041   SVC_MUTEX_RELEASE,
<a name="l00042"></a>00042   SVC_NVIC_ENABLEIRQ,
<a name="l00043"></a>00043   SVC_NVIC_DISABLEIRQ,
<a name="l00044"></a>00044   SVC_NVIC_GETPENDINGIRQ,
<a name="l00045"></a>00045   SVC_NVIC_SETPENDINGIRQ,
<a name="l00046"></a>00046   SVC_NVIC_CLEARPENDINGIRQ,
<a name="l00047"></a>00047   SVC_NVIC_SETPRIORITY,
<a name="l00048"></a>00048   SVC_NVIC_GETPRIORITY,
<a name="l00049"></a>00049   SVC_NVIC_SYSTEMRESET,
<a name="l00050"></a>00050   SVC_NVIC_CRITICAL_REGION_ENTER,
<a name="l00051"></a>00051   SVC_NVIC_CRITICAL_REGION_EXIT,
<a name="l00052"></a>00052   SVC_RAND_APPLICATION_POOL_CAPACITY,
<a name="l00053"></a>00053   SVC_RAND_APPLICATION_BYTES_AVAILABLE,
<a name="l00054"></a>00054   SVC_RAND_APPLICATION_GET_VECTOR,
<a name="l00055"></a>00055   SVC_POWER_MODE_SET,
<a name="l00056"></a>00056   SVC_POWER_PERPOWER_SET,
<a name="l00057"></a>00057   SVC_POWER_PERPOWER_CLR,
<a name="l00058"></a>00058   SVC_POWER_PERPOWER_GET,
<a name="l00059"></a>00059   SVC_POWER_PERRDY_GET,
<a name="l00060"></a>00060   SVC_POWER_SYSTEM_OFF,
<a name="l00061"></a>00061   SVC_POWER_RESET_REASON_GET,
<a name="l00062"></a>00062   SVC_POWER_RESET_REASON_CLR,
<a name="l00063"></a>00063   SVC_POWER_POF_ENABLE,
<a name="l00064"></a>00064   SVC_POWER_POF_THRESHOLD_SET,
<a name="l00065"></a>00065   SVC_POWER_RAMON_SET,
<a name="l00066"></a>00066   SVC_POWER_RAMON_CLR,
<a name="l00067"></a>00067   SVC_POWER_RAMON_GET,
<a name="l00068"></a>00068   SVC_NRF_WAIT_FOR_APP_EVENT,
<a name="l00069"></a>00069   SVC_CLOCK_HFCLK_REQUEST,
<a name="l00070"></a>00070   SVC_CLOCK_HFCLK_RELEASE,
<a name="l00071"></a>00071   SVC_CLOCK_HFCLK_IS_RUNNING,
<a name="l00072"></a>00072   SVC_PPI_CHANNEL_ENABLE_GET,
<a name="l00073"></a>00073   SVC_PPI_CHANNEL_ENABLE_SET,
<a name="l00074"></a>00074   SVC_PPI_CHANNEL_ENABLE_CLR,
<a name="l00075"></a>00075   SVC_PPI_CHANNEL_ASSIGN,
<a name="l00076"></a>00076   SVC_PPI_GROUP_TASK_ENABLE,
<a name="l00077"></a>00077   SVC_PPI_GROUP_TASK_DISABLE,
<a name="l00078"></a>00078   SVC_PPI_GROUP_ASSIGN,
<a name="l00079"></a>00079   SVC_PPI_GROUP_GET,  
<a name="l00080"></a>00080 
<a name="l00081"></a>00081   SVC_SOC_LAST
<a name="l00082"></a>00082 };
<a name="l00083"></a>00083 
<a name="l00084"></a>00084 
<a name="l00086"></a>00086 <span class="keyword">enum</span> {
<a name="l00087"></a>00087   NRF_MUTEX_FREE,
<a name="l00088"></a>00088   NRF_MUTEX_TAKEN
<a name="l00089"></a>00089 };
<a name="l00090"></a>00090 
<a name="l00094"></a><a class="code" href="group__nrf__soc__api.html#gaa1ec46ac9de000227852834ec1ff86ea">00094</a> <span class="keyword">typedef</span> <span class="keyword">volatile</span> uint8_t <a class="code" href="group__nrf__soc__api.html#gaa1ec46ac9de000227852834ec1ff86ea" title="Represents a mutex for use with the nrf_mutex functions.">nrf_mutex_t</a>;
<a name="l00095"></a>00095 
<a name="l00097"></a><a class="code" href="group__nrf__soc__api.html#gae4f033d4d50d42e8b1390dade6ee8f98">00097</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00098"></a>00098   NRF_APP_PRIORITY_HIGH = 1,
<a name="l00099"></a>00099   NRF_APP_PRIORITY_LOW = 3
<a name="l00100"></a>00100 } <a class="code" href="group__nrf__soc__api.html#gae4f033d4d50d42e8b1390dade6ee8f98" title="The interrupt priorities available to the application while the softdevice is active.">nrf_app_irq_priority_t</a>;
<a name="l00101"></a>00101 
<a name="l00103"></a>00103 <span class="keyword">enum</span> {
<a name="l00104"></a><a class="code" href="group__nrf__soc__api.html#gga7ff5f2dff38e7639981794c43dc9167bac6041efce8dd9ac076796ac3b9540887">00104</a>   <a class="code" href="group__nrf__soc__api.html#gga7ff5f2dff38e7639981794c43dc9167bac6041efce8dd9ac076796ac3b9540887">NRF_POWER_MODE_CONSTLAT</a>,  
<a name="l00105"></a><a class="code" href="group__nrf__soc__api.html#gga7ff5f2dff38e7639981794c43dc9167bab029397a420ae259a1aba7e4bb132617">00105</a>   <a class="code" href="group__nrf__soc__api.html#gga7ff5f2dff38e7639981794c43dc9167bab029397a420ae259a1aba7e4bb132617">NRF_POWER_MODE_LOWPWR</a>     
<a name="l00106"></a>00106 };
<a name="l00107"></a>00107 
<a name="l00109"></a><a class="code" href="group__nrf__soc__api.html#ga4238ce3ed489f96720efd94ba269ef34">00109</a> <span class="keyword">typedef</span> uint8_t <a class="code" href="group__nrf__soc__api.html#ga4238ce3ed489f96720efd94ba269ef34" title="Represents a power mode, used in power mode functions.">nrf_power_mode_t</a>;
<a name="l00110"></a>00110 
<a name="l00112"></a>00112 <span class="keyword">enum</span> {
<a name="l00113"></a><a class="code" href="group__nrf__soc__api.html#ggaabfcbcb5ac86a1edac4035264bc7d2b8a41af1d0b4975d70c15f80600362a33aa">00113</a>   <a class="code" href="group__nrf__soc__api.html#ggaabfcbcb5ac86a1edac4035264bc7d2b8a41af1d0b4975d70c15f80600362a33aa">NRF_POWER_THRESHOLD_V21</a>,  
<a name="l00114"></a><a class="code" href="group__nrf__soc__api.html#ggaabfcbcb5ac86a1edac4035264bc7d2b8adb687e57343f6a2fef22b5112c6db586">00114</a>   <a class="code" href="group__nrf__soc__api.html#ggaabfcbcb5ac86a1edac4035264bc7d2b8adb687e57343f6a2fef22b5112c6db586">NRF_POWER_THRESHOLD_V23</a>,  
<a name="l00115"></a><a class="code" href="group__nrf__soc__api.html#ggaabfcbcb5ac86a1edac4035264bc7d2b8ac709573ee044617b2eb9e3485d07a960">00115</a>   <a class="code" href="group__nrf__soc__api.html#ggaabfcbcb5ac86a1edac4035264bc7d2b8ac709573ee044617b2eb9e3485d07a960">NRF_POWER_THRESHOLD_V25</a>,  
<a name="l00116"></a><a class="code" href="group__nrf__soc__api.html#ggaabfcbcb5ac86a1edac4035264bc7d2b8ae41806a99c3aeb93cf356ec49cfd67f6">00116</a>   <a class="code" href="group__nrf__soc__api.html#ggaabfcbcb5ac86a1edac4035264bc7d2b8ae41806a99c3aeb93cf356ec49cfd67f6">NRF_POWER_THRESHOLD_V27</a>   
<a name="l00117"></a>00117 };
<a name="l00118"></a>00118 
<a name="l00120"></a><a class="code" href="group__nrf__soc__api.html#gac0c2f5c58e2f930814dcf5b878fe7907">00120</a> <span class="keyword">typedef</span> uint8_t <a class="code" href="group__nrf__soc__api.html#gac0c2f5c58e2f930814dcf5b878fe7907" title="Represents a power failure threshold value.">nrf_power_failure_threshold_t</a>;
<a name="l00121"></a>00121 
<a name="l00123"></a><a class="code" href="group__nrf__soc__api.html#ga2fa1cbca17f204aac02cf3654567dd9c">00123</a> <span class="keyword">typedef</span> void (*<a class="code" href="group__nrf__soc__api.html#ga2fa1cbca17f204aac02cf3654567dd9c" title="Power failure threshold callback.">nrf_power_failure_callback_t</a>)(void);
<a name="l00124"></a>00124 
<a name="l00131"></a>00131 uint32_t SVCALL(SVC_MUTEX_NEW) <a class="code" href="group__nrf__soc__api.html#gaf0dbc8267e831265bd2c49947965946b" title="Initialize a mutex.">nrf_mutex_new</a>(<a class="code" href="group__nrf__soc__api.html#gaa1ec46ac9de000227852834ec1ff86ea" title="Represents a mutex for use with the nrf_mutex functions.">nrf_mutex_t</a> * p_mutex);
<a name="l00132"></a>00132 
<a name="l00140"></a>00140 uint32_t SVCALL(SVC_MUTEX_ACQUIRE) <a class="code" href="group__nrf__soc__api.html#ga2b5ebe5277da53b0f1f3e69b46cc9ffa" title="Attempt to acquire a mutex.">nrf_mutex_acquire</a>(<a class="code" href="group__nrf__soc__api.html#gaa1ec46ac9de000227852834ec1ff86ea" title="Represents a mutex for use with the nrf_mutex functions.">nrf_mutex_t</a> * p_mutex);
<a name="l00141"></a>00141 
<a name="l00148"></a>00148 uint32_t SVCALL(SVC_MUTEX_RELEASE) <a class="code" href="group__nrf__soc__api.html#ga0677e2f67a0e706af16ed651eecdf452" title="Release a mutex.">nrf_mutex_release</a>(<a class="code" href="group__nrf__soc__api.html#gaa1ec46ac9de000227852834ec1ff86ea" title="Represents a mutex for use with the nrf_mutex functions.">nrf_mutex_t</a> * p_mutex);
<a name="l00149"></a>00149 
<a name="l00161"></a>00161 uint32_t SVCALL(SVC_NVIC_ENABLEIRQ) <a class="code" href="group__nrf__soc__api.html#ga624ecb710ec5cdaf22893608d55c6f3a" title="Enable External Interrupt.">nrf_nvic_EnableIRQ</a>(IRQn_Type IRQn);
<a name="l00162"></a>00162 
<a name="l00173"></a>00173 uint32_t SVCALL(SVC_NVIC_DISABLEIRQ) <a class="code" href="group__nrf__soc__api.html#gac145fde7e2f48e88ab229c375b062993" title="Disable External Interrupt.">nrf_nvic_DisableIRQ</a>(IRQn_Type IRQn);
<a name="l00174"></a>00174 
<a name="l00186"></a>00186 uint32_t SVCALL(SVC_NVIC_GETPENDINGIRQ) <a class="code" href="group__nrf__soc__api.html#ga25cc663bcd35f40c231844c627b7fc3b" title="Get Pending Interrupt.">nrf_nvic_GetPendingIRQ</a>(IRQn_Type IRQn, uint32_t * p_pending_irq);
<a name="l00187"></a>00187 
<a name="l00198"></a>00198 uint32_t SVCALL(SVC_NVIC_SETPENDINGIRQ) <a class="code" href="group__nrf__soc__api.html#gaad1ef845b8cce8412c037cf82f95060a" title="Set Pending Interrupt.">nrf_nvic_SetPendingIRQ</a>(IRQn_Type IRQn);
<a name="l00199"></a>00199 
<a name="l00210"></a>00210 uint32_t SVCALL(SVC_NVIC_CLEARPENDINGIRQ) <a class="code" href="group__nrf__soc__api.html#ga444796a3a1fc91db087ceebcd92d6561" title="Clear Pending Interrupt.">nrf_nvic_ClearPendingIRQ</a>(IRQn_Type IRQn);
<a name="l00211"></a>00211 
<a name="l00225"></a>00225 uint32_t SVCALL(SVC_NVIC_SETPRIORITY) <a class="code" href="group__nrf__soc__api.html#gad1a939313c86ac881a0b1043715ef475" title="Set Interrupt Priority.">nrf_nvic_SetPriority</a>(IRQn_Type IRQn, <a class="code" href="group__nrf__soc__api.html#gae4f033d4d50d42e8b1390dade6ee8f98" title="The interrupt priorities available to the application while the softdevice is active.">nrf_app_irq_priority_t</a> priority);
<a name="l00226"></a>00226 
<a name="l00238"></a>00238 uint32_t SVCALL(SVC_NVIC_GETPRIORITY) <a class="code" href="group__nrf__soc__api.html#gaf411d0efea26ac8a0003ce57f43d46b1" title="Get Interrupt Priority.">nrf_nvic_GetPriority</a>(IRQn_Type IRQn, <a class="code" href="group__nrf__soc__api.html#gae4f033d4d50d42e8b1390dade6ee8f98" title="The interrupt priorities available to the application while the softdevice is active.">nrf_app_irq_priority_t</a> * p_priority);
<a name="l00239"></a>00239 
<a name="l00245"></a>00245 uint32_t SVCALL(SVC_NVIC_SYSTEMRESET) <a class="code" href="group__nrf__soc__api.html#ga14316a62c4a2010b6222c4ea764079c2" title="System Reset.">nrf_nvic_SystemReset</a>(<span class="keywordtype">void</span>);
<a name="l00246"></a>00246 
<a name="l00257"></a>00257 uint32_t SVCALL(SVC_NVIC_CRITICAL_REGION_ENTER) <a class="code" href="group__nrf__soc__api.html#ga45b358c92b51248f9e55e1d99756136b" title="Enters critical region.">nrf_nvic_critical_region_enter</a>(uint8_t * p_is_nested_critical_region);
<a name="l00258"></a>00258 
<a name="l00268"></a>00268 uint32_t SVCALL(SVC_NVIC_CRITICAL_REGION_EXIT) <a class="code" href="group__nrf__soc__api.html#ga476819b5a0f3d7c0a378d11c5ee88650" title="Exit critical region.">nrf_nvic_critical_region_exit</a>(uint8_t is_nested_critical_region);
<a name="l00269"></a>00269 
<a name="l00276"></a>00276 uint32_t SVCALL(SVC_RAND_APPLICATION_POOL_CAPACITY) <a class="code" href="group__nrf__soc__api.html#ga4310a2c78bbf9e780e377ce7187da035" title="Query the capacity of the application random pool.">nrf_rand_application_pool_capacity_get</a>(uint8_t * p_pool_capacity);
<a name="l00277"></a>00277 
<a name="l00284"></a>00284 uint32_t SVCALL(SVC_RAND_APPLICATION_BYTES_AVAILABLE) <a class="code" href="group__nrf__soc__api.html#ga529a78306776d8cfb18c874aef536025" title="Get number of random bytes available to the application.">nrf_rand_application_bytes_available_get</a>(uint8_t * p_bytes_available);
<a name="l00285"></a>00285 
<a name="l00294"></a>00294 uint32_t SVCALL(SVC_RAND_APPLICATION_GET_VECTOR) <a class="code" href="group__nrf__soc__api.html#ga6ba4c4423a03c0cac787f854a7374950" title="Get random bytes from the application pool.">nrf_rand_application_vector_get</a>(uint8_t * p_buff, uint8_t length);
<a name="l00295"></a>00295 
<a name="l00302"></a>00302 uint32_t SVCALL(SVC_POWER_RESET_REASON_GET) <a class="code" href="group__nrf__soc__api.html#ga7316584719bbc8a3ac9db9179cc6eeda" title="Gets the reset reason register.">nrf_power_reset_reason_get</a>(uint32_t * p_reset_reason);
<a name="l00303"></a>00303 
<a name="l00310"></a>00310 uint32_t SVCALL(SVC_POWER_RESET_REASON_CLR) <a class="code" href="group__nrf__soc__api.html#ga7c2fdd9ec1122b6d6902fef11d1fe029" title="Clears the bits of the reset reason register.">nrf_power_reset_reason_clr</a>(uint32_t reset_reason_clr_msk);
<a name="l00311"></a>00311 
<a name="l00319"></a>00319 uint32_t SVCALL(SVC_POWER_MODE_SET) <a class="code" href="group__nrf__soc__api.html#gaa80ebbe8aac1a74f0e389d07411cdf4b" title="Sets the power mode when in CPU sleep.">nrf_power_mode_set</a>(<a class="code" href="group__nrf__soc__api.html#ga4238ce3ed489f96720efd94ba269ef34" title="Represents a power mode, used in power mode functions.">nrf_power_mode_t</a> power_mode);
<a name="l00320"></a>00320 
<a name="l00327"></a>00327 uint32_t SVCALL(SVC_POWER_PERPOWER_SET) <a class="code" href="group__nrf__soc__api.html#ga4070a6cd178fce204f58a1bf6e3fc954" title="Sets bits in the NRF_POWER-&gt;PERPOWER register.">nrf_power_perpower_set</a>(uint32_t peripheral_power_msk);
<a name="l00328"></a>00328 
<a name="l00335"></a>00335 uint32_t SVCALL(SVC_POWER_PERPOWER_CLR) <a class="code" href="group__nrf__soc__api.html#ga32fbf0020bac4b9746178a337ff276c7" title="Clears bits in the NRF_POWER-&gt;PERPOWER register.">nrf_power_perpower_clr</a>(uint32_t peripheral_power_msk);
<a name="l00336"></a>00336 
<a name="l00343"></a>00343 uint32_t SVCALL(SVC_POWER_PERRDY_GET) <a class="code" href="group__nrf__soc__api.html#gabaf2aa42d1d287d9d4fd2b00ecda1da7" title="Get contents of NRF_POWER-&gt;PERRDY register, indicates which peripherals are powered on/off...">nrf_power_perrdy_get</a>(uint32_t * p_perrdy);
<a name="l00344"></a>00344 
<a name="l00349"></a>00349 uint32_t SVCALL(SVC_POWER_SYSTEM_OFF) <a class="code" href="group__nrf__soc__api.html#ga302701614c7bb1c9fc01dafec2bb04fb" title="Puts the chip in System OFF mode.">nrf_power_system_off</a>(<span class="keywordtype">void</span>);
<a name="l00350"></a>00350 
<a name="l00360"></a>00360 uint32_t SVCALL(SVC_POWER_POF_ENABLE) <a class="code" href="group__nrf__soc__api.html#ga9a68c632ad6a5ce523de969060b211c5" title="Enables or disables the power-fail comparator.">nrf_power_pof_enable</a>(uint8_t pof_enable, <a class="code" href="group__nrf__soc__api.html#ga2fa1cbca17f204aac02cf3654567dd9c" title="Power failure threshold callback.">nrf_power_failure_callback_t</a> pof_callback);
<a name="l00361"></a>00361 
<a name="l00369"></a>00369 uint32_t SVCALL(SVC_POWER_POF_THRESHOLD_SET) <a class="code" href="group__nrf__soc__api.html#ga6d0f7bfe966b1137f0667f56ad068462" title="Sets the power-fail threshold value.">nrf_power_pof_threshold_set</a>(<a class="code" href="group__nrf__soc__api.html#gac0c2f5c58e2f930814dcf5b878fe7907" title="Represents a power failure threshold value.">nrf_power_failure_threshold_t</a> threshold);
<a name="l00370"></a>00370 
<a name="l00377"></a>00377 uint32_t SVCALL(SVC_POWER_RAMON_SET) <a class="code" href="group__nrf__soc__api.html#ga8abf79b52943726785255263a7d6efb0" title="Sets bits in the NRF_POWER-&gt;RAMON register.">nrf_power_ramon_set</a>(uint32_t ramon);
<a name="l00378"></a>00378 
<a name="l00385"></a>00385 uint32_t SVCALL(SVC_POWER_RAMON_CLR) <a class="code" href="group__nrf__soc__api.html#gac334721cc6122795d4a39466f615f4f1" title="Clears bits in the NRF_POWER-&gt;RAMON register.">nrf_power_ramon_clr</a>(uint32_t ramon);
<a name="l00386"></a>00386 
<a name="l00393"></a>00393 uint32_t SVCALL(SVC_POWER_RAMON_GET) <a class="code" href="group__nrf__soc__api.html#ga29d403a9d694ef748c4ad69cafee708b" title="Get contents of NRF_POWER-&gt;RAMON register, indicates power status of ram blocks.">nrf_power_ramon_get</a>(uint32_t * p_ramon);
<a name="l00394"></a>00394 
<a name="l00405"></a>00405 uint32_t SVCALL(SVC_CLOCK_HFCLK_REQUEST) <a class="code" href="group__nrf__soc__api.html#ga03b395172fd9e6157542a54d2b0d9846" title="Request the high frequency crystal oscillator.">nrf_clock_hfclk_request</a>(<span class="keywordtype">void</span>);
<a name="l00406"></a>00406 
<a name="l00416"></a>00416 uint32_t SVCALL(SVC_CLOCK_HFCLK_RELEASE) <a class="code" href="group__nrf__soc__api.html#gaf8784db461524e809a2a35c0e19959cb" title="Releases the high frequency crystal oscillator.">nrf_clock_hfclk_release</a>(<span class="keywordtype">void</span>);
<a name="l00417"></a>00417 
<a name="l00427"></a>00427 uint32_t SVCALL(SVC_CLOCK_HFCLK_IS_RUNNING) <a class="code" href="group__nrf__soc__api.html#gaa3fb83e20c2a3f6b3939fcdd232e94a6" title="Checks if the high frequency crystal oscillator is running.">nrf_clock_hfclk_is_running</a>(uint32_t * p_is_running);
<a name="l00428"></a>00428 
<a name="l00452"></a>00452 uint32_t SVCALL(SVC_NRF_WAIT_FOR_APP_EVENT) <a class="code" href="group__nrf__soc__api.html#ga2aae5f388f1b6179058c62e2fb05a547" title="Waits for an application event.">nrf_wait_for_app_event</a>(<span class="keywordtype">void</span>);
<a name="l00453"></a>00453 
<a name="l00460"></a>00460 uint32_t SVCALL(SVC_PPI_CHANNEL_ENABLE_GET) <a class="code" href="group__nrf__soc__api.html#gab9f02ac43ec7754bf327571aebd6a612" title="Get PPI channel enable register contents.">nrf_ppi_channel_enable_get</a>(uint32_t * p_channel_enable);
<a name="l00461"></a>00461 
<a name="l00468"></a>00468 uint32_t SVCALL(SVC_PPI_CHANNEL_ENABLE_SET) <a class="code" href="group__nrf__soc__api.html#gad18f79c96963c57714cf30b5922fe8e5" title="Set PPI channel enable register.">nrf_ppi_channel_enable_set</a>(uint32_t channel_enable_set_msk);
<a name="l00469"></a>00469 
<a name="l00476"></a>00476 uint32_t SVCALL(SVC_PPI_CHANNEL_ENABLE_CLR) <a class="code" href="group__nrf__soc__api.html#ga6374d2c7eb2e47f87dd7cd8d7e246e04" title="Clear PPI channel enable register.">nrf_ppi_channel_enable_clr</a>(uint32_t channel_enable_clr_msk);
<a name="l00477"></a>00477 
<a name="l00487"></a>00487 uint32_t SVCALL(SVC_PPI_CHANNEL_ASSIGN) <a class="code" href="group__nrf__soc__api.html#ga36d104cdb021a86c919485ac34c48fa2" title="Assign endpoints to a PPI channel.">nrf_ppi_channel_assign</a>(uint8_t channel_num, const volatile <span class="keywordtype">void</span> * event_endpoint, const volatile <span class="keywordtype">void</span> * task_endpoint);
<a name="l00488"></a>00488 
<a name="l00496"></a>00496 uint32_t SVCALL(SVC_PPI_GROUP_TASK_ENABLE) <a class="code" href="group__nrf__soc__api.html#ga60a133b68053dec8ba337640b5ca5faf" title="Task to enable a channel group.">nrf_ppi_group_task_enable</a>(uint8_t group_num);
<a name="l00497"></a>00497 
<a name="l00505"></a>00505 uint32_t SVCALL(SVC_PPI_GROUP_TASK_DISABLE) <a class="code" href="group__nrf__soc__api.html#ga29923c615e02ef9b9aaca0c5edcac2e2" title="Task to disable a channel group.">nrf_ppi_group_task_disable</a>(uint8_t group_num);
<a name="l00506"></a>00506 
<a name="l00515"></a>00515 uint32_t SVCALL(SVC_PPI_GROUP_ASSIGN) <a class="code" href="group__nrf__soc__api.html#ga12f534bb509f0e6f7fa4688eda7f98a0" title="Assign PPI channels to a channel group.">nrf_ppi_group_assign</a>(uint8_t group_num, uint32_t channel_msk);
<a name="l00516"></a>00516 
<a name="l00525"></a>00525 uint32_t SVCALL(SVC_PPI_GROUP_GET) <a class="code" href="group__nrf__soc__api.html#ga5385489e5ff909addcedf7e315504464" title="Gets the PPI channels of a channel group.">nrf_ppi_group_get</a>(uint8_t group_num, uint32_t * p_channel_msk);
<a name="l00526"></a>00526                                                        
<a name="l00527"></a>00527 <span class="preprocessor">#endif // NRF_SOC_H__</span>
<a name="l00528"></a>00528 <span class="preprocessor"></span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>nrf_soc.h</b>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">
      Copyright &copy 2006-2011 <a href="http://www.nordicsemi.no" style="text-decoration:none">Nordic Semiconductor</a>.
      All Rights Reserved.
      <a href="disclaimer.html">Disclaimer</a>
    </li>
   </ul>
 </div>


</body>
</html>
